﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PostDetailDataObject"
    targetNamespace="http://www.tinyforum.com/PostDetailDataObject.xsd"
    elementFormDefault="qualified"
    xmlns="http://www.tinyforum.com/PostDetailDataObject.xsd"
    xmlns:mstns="http://www.tinyforum.com/PostDetailDataObject.xsd"
    xmlns:pdo="http://www.tinyforum.com/PostDataObject.xsd"
    xmlns:rdo="http://www.tinyforum.com/ReplyDataObject.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:import namespace="http://www.tinyforum.com/PostDataObject.xsd" schemaLocation=".\PostDataObject.xsd"/>
  <xs:import namespace="http://www.tinyforum.com/ReplyDataObject.xsd" schemaLocation=".\ReplyDataObject.xsd"/>

  <xs:complexType name="ReplyListType">
    <xs:sequence>
      <xs:element name="Reply" type="rdo:ReplyDataObject" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="PostDetailDataObject">
    <xs:sequence>
      <xs:element name="Post" minOccurs="1" maxOccurs="1" nillable="false" type="pdo:PostDataObject"/>
      <xs:element name="Replies" minOccurs="0" maxOccurs="1" nillable="true" type="ReplyListType"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
